---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a8.log
  log type:  text
 opened on:  11 Jun 2020, 13:00:09

. 
. **** Table on legislative effects for  ``small" counties, defined as counties with initial population at 50th percentile and below
. 
. use "$path/foreclosures_leg_analysis.dta", clear

. 
. foreach j in sen cong {
  2. 
.         bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe `j'_vs foreclosure_rate foreclosure_inc [aw=pop_y] if popdecile <= 4, a(fips sy) cluster(fips)
  3.         local `j'b1 = _b[foreclosure_rate]
  4.         local `j'se1 = _se[foreclosure_rate]
  5.         local `j'bint1 = _b[foreclosure_inc]
  6.         local `j'seint1 = _se[foreclosure_inc]
  7.         local `j'n1 = e(N)
  8.         local `j'nclust1 = e(N_clust)
  9.         
.         bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe `j'_vs foreclosure_rate foreclosure_inc [aw=pop_y] if popdecile <= 4, a(fips popyear) cluster(fips)
 10.         local `j'b2 = _b[foreclosure_rate]
 11.         local `j'se2 = _se[foreclosure_rate]
 12.         local `j'bint2 = _b[foreclosure_inc]
 13.         local `j'seint2 = _se[foreclosure_inc]
 14.         local `j'n2 = e(N)
 15.         local `j'nclust2 = e(N_clust)
 16.         
.         bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe `j'_vs foreclosure_rate foreclosure_inc [aw=pop_y] if popdecile <= 4, a(i.fips##c.year sy) cluster(fips)
 17.         local `j'b3 = _b[foreclosure_rate]
 18.         local `j'se3 = _se[foreclosure_rate]
 19.         local `j'bint3 = _b[foreclosure_inc]
 20.         local `j'seint3 = _se[foreclosure_inc]
 21.         local `j'n3 = e(N)
 22.         local `j'nclust3 = e(N_clust)
 23.         
.         bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe `j'_vs foreclosure_rate foreclosure_inc [aw=pop_y] if popdecile <= 4, a(i.fips##c.year popyear) cluster(fips)
 24.         local `j'b4 = _b[foreclosure_rate]
 25.         local `j'se4 = _se[foreclosure_rate]
 26.         local `j'bint4 = _b[foreclosure_inc]
 27.         local `j'seint4 = _se[foreclosure_inc]
 28.         local `j'n4 = e(N)
 29.         local `j'nclust4 = e(N_clust)
 30. 
. }
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      6,080
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       4.25
                                                Prob > chi2       =     0.1197
                                                R-squared         =     0.9681
                                                Adj R-squared     =     0.9558
                                                Root MSE          =     3.9427

                                    (Replications based on 1,473 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
          sen_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |   -.050647   .0833629    -0.61   0.543    -.2140353    .1127412
 foreclosure_inc |  -.1064007   .0672999    -1.58   0.114    -.2383061    .0255047
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1473           1473 *   | 
              sy |          224             225              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      6,092
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       6.44
                                                Prob > chi2       =     0.0400
                                                R-squared         =     0.6143
                                                Adj R-squared     =     0.4867
                                                Root MSE          =    13.4263

                                    (Replications based on 1,474 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
          sen_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.5401255   .2683342    -2.01   0.044    -1.066051   -.0142001
 foreclosure_inc |   .4608842   .1954341     2.36   0.018     .0778404    .8439281
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1474           1474 *   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      6,080
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       3.27
                                                Prob > chi2       =     0.1953
                                                R-squared         =     0.9828
                                                Adj R-squared     =     0.9641
                                                Root MSE          =     3.5549

                                    (Replications based on 1,473 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
          sen_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.0384017   .0857847    -0.45   0.654    -.2065365    .1297332
 foreclosure_inc |  -.0829063    .064723    -1.28   0.200    -.2097611    .0439486
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1473           1473 *   | 
     fips#c.year |         1473            1473              0 ?   | 
              sy |          224             225              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      6,092
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =      32.20
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.7714
                                                Adj R-squared     =     0.5512
                                                Root MSE          =    12.5534

                                    (Replications based on 1,474 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
          sen_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.9120806   .4037708    -2.26   0.024    -1.703457   -.1207044
 foreclosure_inc |   1.460673   .2576163     5.67   0.000     .9557543    1.965592
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1474           1474 *   | 
     fips#c.year |         1474            1474              0 ?   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,059
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       0.18
                                                Prob > chi2       =     0.9137
                                                R-squared         =     0.7695
                                                Adj R-squared     =     0.7085
                                                Root MSE          =    11.8572

                                    (Replications based on 1,560 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         cong_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.0957752   .2366464    -0.40   0.686    -.5595936    .3680432
 foreclosure_inc |   .0368002   .2494389     0.15   0.883     -.452091    .5256914
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1560           1560 *   | 
              sy |          334             335              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,075
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       4.10
                                                Prob > chi2       =     0.1286
                                                R-squared         =     0.6546
                                                Adj R-squared     =     0.5806
                                                Root MSE          =    14.2215

                                    (Replications based on 1,561 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         cong_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |   .2852035   .2822906     1.01   0.312    -.2680759    .8384829
 foreclosure_inc |  -.5245898   .2635046    -1.99   0.047    -1.041049   -.0081303
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1561           1561 *   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,059
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       0.10
                                                Prob > chi2       =     0.9526
                                                R-squared         =     0.8653
                                                Adj R-squared     =     0.7823
                                                Root MSE          =    10.2473

                                    (Replications based on 1,560 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         cong_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.0451783   .2900121    -0.16   0.876    -.6135916    .5232351
 foreclosure_inc |   .0816805   .2806041     0.29   0.771    -.4682935    .6316545
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1560           1560 *   | 
     fips#c.year |         1560            1560              0 ?   | 
              sy |          334             335              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,075
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =       1.80
                                                Prob > chi2       =     0.4064
                                                R-squared         =     0.8107
                                                Adj R-squared     =     0.7094
                                                Root MSE          =    11.8381

                                    (Replications based on 1,561 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         cong_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |   .1924405   .2579769     0.75   0.456     -.313185     .698066
 foreclosure_inc |  -.2954999   .2253541    -1.31   0.190    -.7371859     .146186
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            1561           1561 *   | 
     fips#c.year |         1561            1561              0 ?   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a8.log
  log type:  text
 closed on:  11 Jun 2020, 13:29:22
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
